set1 = set()
for a in [2, 8]:
    for b in [2, 8]:
        for c in [2, 8]:
            set1.add((a, b, c))
for a in [4, 8]:
    for b in [4, 8]:
        for c in [4, 8]:
            set1.add(a, b, c)
print("after")
for item in set1:
    print item
